package kayao.client.scene.objects;

import kayao.common.Client;

import com.chopsticks3d.scene.SceneNode;

/**
 * Represents an entity in the networked virtual environment,
 * each with its own owner. If the owner equals null then the
 * local client is the owner of the entity.
 */
public class Entity extends PhysicalNode {
	private Client mOwner;
	
	/**
	 * Constructor which set the local host as the owner.
	 */
	public Entity() {
		
	}
	
	/**
	 * Constructor which set the owner.
	 * @param owner the owner of the entity.
	 */
	public Entity(Client owner) {
		mOwner = owner;
	}
	
	/**
	 * Returns the owner.
	 * @return The owner of the entity.
	 */
	public Client getOwner() {
		return mOwner;
	}
	
	/**
	 * Sets the owner.
	 * @param owner the owner of the entity.
	 */
	public void setOwner(Client owner) {
		mOwner = owner;
	}
}
